import request from '@/utils/request'

// 查询用户充值记录列表
export function listRechargeLog(query) {
  return request({
    url: '/md/rechargeLog/list',
    method: 'get',
    params: query
  })
}

// 查询用户充值记录详细
export function getRechargeLog(rechargeLogId) {
  return request({
    url: '/md/rechargeLog/' + rechargeLogId,
    method: 'get'
  })
}

// 新增用户充值记录
export function addRechargeLog(data) {
  return request({
    url: '/md/log',
    method: 'post',
    data: data
  })
}

// 修改用户充值记录
export function updateRechargeLog(data) {
  return request({
    url: '/md/log',
    method: 'put',
    data: data
  })
}

// 删除用户充值记录
export function delRechargeLog(rechargeLogId) {
  return request({
    url: '/md/rechargeLog/' + rechargeLogId,
    method: 'delete'
  })
}
